#ifndef PROGRESSDIALOG_H
#define PROGRESSDIALOG_H

#include <QDialog>
#include <QTimer>

namespace Ui {
    class ProgressDialog;
}

class ProgressDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ProgressDialog(QWidget *parent = 0);
    ~ProgressDialog();
    void start(int t);
    void stop();

private slots:
    void timeDone1();
    void timeDone2();

private:
    Ui::ProgressDialog *ui;
    QTimer* timer1;
    QTimer* timer2;
    int count1;
    int count2;
    int time;

};

#endif // PROGRESSDIALOG_H
